.lab-cards {
    display: flex;
    justify-content: center;
}

.lab-card {
    margin: 70px 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    border-radius: 24px;
    line-height: 1.6;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 50px;
    border-radius: 22px;
    color: #ffffff;
    overflow: hidden;
    background-image: linear-gradient(to top, #5f72bd 0%, #8861fc 100%);
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-content::before {
    position: absolute;
    content: "";
    top: -4%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%);
    background: #ced8ff;
    z-index: -1;
    transform-origin: bottom;

    border-radius: inherit;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-content::after {
    position: absolute;
    content: "";
    top: -8%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%);
    background: #e7ecff;
    z-index: -2;
    transform-origin: bottom;
    border-radius: inherit;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-content p {
    z-index: 1;
    opacity: 1;
    font-size: 18px;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.lab-content .link:hover {
    text-decoration: underline;
}

.lab-card:hover {
    transform: translate(0px, -16px);
}

.lab-card:hover .lab-content::before {
    rotate: -4deg;
    top: 0;
    width: 100%;
    height: 100%;
}

.lab-card:hover .lab-content::after {
    rotate: 4deg;
    top: 0;
    width: 100%;
    height: 100%;
}

.main-show {
    width: 70%;

}

.show-title {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.show-title div {
    width: 15px;
    height: 30px;
    background-color: rgb(0, 179, 255);
    margin-right: 4px;
}

.show-title h1 {
    margin: 0;
}

.show-area {
    margin: 10px 0;
    width: 100%;
    border: solid 2px rgb(177, 234, 244);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.button-area {
    display: flex;
    justify-content: space-evenly;
}

.button-area button {
    margin: 10px 10px;
    cursor: pointer;
    align-items: center;
    appearance: none;
    background-color: #EEF2FF;
    border-radius: 8px;
    border-width: 2px;
    border-color: #536DFE;
    box-shadow: rgba(83, 109, 254, 0.2) 0 2px 4px, rgba(83, 109, 254, 0.15) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #536DFE;
    display: inline-flex;
    height: 56px;
    line-height: 1;
    list-style: none;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
    touch-action: manipulation;
    font-size: 20px;
}

.button-area button:hover {
    outline: none;
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(83, 109, 254, 0.4) 0 2px 4px, rgba(83, 109, 254, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.button-area button:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

.list {
    height: 200px;
    margin: 5px 1% 10px 1%;
    border: solid 1px rgb(58, 186, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.listitem {
    display: flex;
    margin: 10px;
    width: 60px;
    height: 60px;
    background-color: #ffeae7;
    border-radius: 8px;
    border: solid 2px #fe6d53;
    box-sizing: border-box;
    color: #fe6d53;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1;
}

.listitem.moving {
    background-color: rgb(208, 208, 208);
    border-color: rgb(208, 208, 208);
    color: rgb(208, 208, 208);
    z-index: 2;
    transform: scale(1.05);
    opacity: 0.8;
}

.rectangle {
    position: absolute;
    border: 2px solid black;
    background-color: transparent;
    pointer-events: none;
    /* 防止矩形阻挡鼠标事件 */
}

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .transition-height {
        transition-property: height;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 300ms;
    }

    .animate-fade-in {
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.contacts-container {
    max-height: calc(100vh - 300px);
}